package com.excetop.xservlet.req.param;

/**
 * 参数
 * @author xuZW
 *
 */
public abstract class Param implements ParamType {

	/**
	 * 名称
	 */
	private String name;
	
	/**
	 * 类型
	 */
	private String type;
	
	/**
	 * 验证模式数组
	 */
	protected String[] patternArray;

	public Param() {
	}
	
	public Param(String name, String type) {
		this.name = name;
		this.type = type;
	}
	
	public Param(String name, String type, String[] patternArray) {
		this.name = name;
		this.type = type;
		this.patternArray = patternArray;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String[] getPatternArray() {
		return patternArray;
	}

	public void setPatternArray(String[] patternArray) {
		this.patternArray = patternArray;
	}
	
	/**
	 * 验证参数
	 * @return
	 */
	public abstract boolean verifying();
	
}
